<?php
require_once dirname(dirname(dirname(__FILE__))) . '/init.php';
//根据日志表(p_product_sales_log)计算统计销量（七天/十五天/三十天/第二周)
class SalesStatisticsController extends Controller_CronJob {

	public function run() {
		return $this->writeDb->query('CALL COMPUTE_FOR_SOLDS()');
	}
}

$salesStatistics = new SalesStatisticsController();
$salesStatistics->run();